var http=require('http');
var fs=require('fs');

var server=http.createServer((req,res)=>{
    fs.readFile(__dirname+'/index.html','utf-8',(err,txt)=>{
        if(err)return res.end(500);
        //res.setHeader('Content-Length',1000);
        res.end(txt.toString());
    });
});
server.listen(4001,()=>{
    console.log('Length port:',4001,new Date());
});
